﻿#include "btnclick.h"

#include <service/filetreeservice.h>


BtnClick::BtnClick(QObject *parent): QObject(parent){
};

BtnClick::~BtnClick(){
}

void BtnClick::doBtnClick(){
    FileTreeService* ser = new FileTreeService();
    ser->getAll(AppUtil::location);
    ToastUtil::showToast("提示");
    delete ser;
}

void BtnClick::openFile(QObject* mo){
    FileModel* file = (FileModel*) mo;
    QString fullPath = file->fullPath();
    qDebug()<<fullPath;

    ToastUtil::showToast("提示");

}


